﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZCConsole.Load
{
    class FindDoor
    {
        public static PSDoor FindRelayPSDoor(Section section, ZC zc)
        {
            Section sec = zc.data.Devices.Find((Device element) => {
                if (element is Section)
                {
                    return (element as Section) == section;
                }
                return false;
            }) as Section;
            return sec.RelayPSDoor;
        }
    }
}
